import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import "@/assets/css/global.css";
import store from "@/store/index.js";
import * as echarts from "echarts";
// import BaiduMap from "vue-baidu-map";
import VueBMap from 'vue-bmap-gl';
import 'vue-bmap-gl/dist/style.css';
import moduleLeft from "@/components/moduleBox/left.vue";
import moduleRight from "@/components/moduleBox/right.vue";
import Pagination from "@/components/Pagination";

Vue.use(ElementUI);
// Vue.use(BaiduMap, {
//   ak: "A4T4C54SRuOORdfSE3FsjfrjwpkPeSY4",
// });
VueBMap.initBMapApiLoader({
	// 百度的key
	ak:'A4T4C54SRuOORdfSE3FsjfrjwpkPeSY4',
})
Vue.use(VueBMap)

Vue.component("moduleLeft", moduleLeft);
Vue.component("moduleRight", moduleRight);
// eslint-disable-next-line vue/multi-word-component-names
Vue.component("Pagination", Pagination);

Vue.config.productionTip = false;
Vue.prototype.$echarts = echarts;
window.$MAP_MARKER = new Map();

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");